import { defineStore } from 'pinia'

interface DeviceDetailItem {
  [key: string]: string
}

interface DeviceDetail {
  deviceDetail: DeviceDetailItem
}

export const useDeviceDetailStore = defineStore('deviceDetail', {
  state: (): DeviceDetail => ({
    deviceDetail: {}
  }),
  actions: {
    updateData(data) {
      Object.assign(this.deviceDetail, data)
    }
  }
})
